package com.chen.demo01;
// 代理者  房屋中介  其整体行为中可包含其他行为，如带看房，代签合同等
public class Proxy implements Rent {
    private Host host;

    public Proxy(){

    };

    public Proxy(Host host) {
        this.host = host;
    };


    @Override
    public void rent() {
        host.rent();
        seeHouse();
        free();
        hetong();
    }

    public void seeHouse(){
        System.out.println("带看房");
    };

    public void free(){
        System.out.println("收押金");
    };
    public void hetong(){
        System.out.println("代签合同");
    };


}
